home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / plaf / basic / BasicComboPopup$ItemHandler.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.0 KB  |  24 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.event.ItemEvent;
  4. import java.awt.event.ItemListener;
  5.  
  6. public class BasicComboPopup$ItemHandler implements ItemListener {
  7.    // $FF: synthetic field
  8.    private final BasicComboPopup this$0;
  9.  
  10.    protected BasicComboPopup$ItemHandler(BasicComboPopup var1) {
  11.       this.this$0 = var1;
  12.    }
  13.  
  14.    public void itemStateChanged(ItemEvent var1) {
  15.       if (var1.getStateChange() == 1 && !this.this$0.valueIsAdjusting) {
  16.          this.this$0.valueIsAdjusting = true;
  17.          this.this$0.syncListSelectionWithComboBoxSelection();
  18.          this.this$0.valueIsAdjusting = false;
  19.          this.this$0.list.ensureIndexIsVisible(this.this$0.comboBox.getSelectedIndex());
  20.       }
  21.  
  22.    }
  23. }
  24.